<?php
declare (strict_types = 1);

namespace app\admin\request;

use app\BaseRequest;

class RoleRequest extends BaseRequest
{

    protected $rule = [
        'id'=> 'require',
        'role_id'=> 'require',
        'name'=> 'require',
        'create_time'=> 'require',
        'update_time'=> 'require',
        'delete_time'=> 'require',
    ];


    protected $message = [
        'id.require'=> 'id',
        'role_id.require'=> 'role_id',
        'name.require'=> 'name',
        'create_time.require'=> 'create_time',
        'update_time.require'=> 'update_time',
        'delete_time.require'=> 'delete_time',
    ];


    protected $scene = [
        'index'=> ['id','role_id','name','create_time','update_time','delete_time'],
        'data' => ['id','role_id','name','create_time','update_time','delete_time'],
    ];
}
